package com.snap.vseries.logger;


import com.orhanobut.logger.Logger;
import com.snap.vseries.AppConfig;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;


public class LoggerUtil {
    public static String printExceptionInfo(Throwable e) {
        Writer writer = new StringWriter();
        PrintWriter printWriter = new PrintWriter(writer);
        e.printStackTrace(printWriter);
        printWriter.close();
        return writer.toString();
    }

    public static void Log(int id,String expName, String content) {
        Logger.v("设备"+ AppConfig.DEVICES[id]+":"+content + "|" + expName);
    }

}
